package com.wq.wrongquestion.mapper.mat;

import java.util.List;

import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;


import com.wq.wrongquestion.entity.mat.MathsEntity;

/**
 * 数学
 */
@Mapper
public interface MathsMapper {

    @Select("select zjnm from m_mathszj where zjid=#{zjID}")
    public String getMathsZjnm(String zjID);
    

    @Select("select zjID from m_mathszj")
    public List<String>  getMathsZjID();
    /**
     * 获取所有章节
     * @return
     */

    public List<String>  getMathsZj();

    public List<MathsEntity> getMaths(MathsEntity mathsEntity);


    public List<MathsEntity> getMathsByID(Integer id);
    /**
     * 插入错题 
     */

    public void insMaths(MathsEntity mathsEntity);
    /**
     * 更新错题
     * @param mathsEntity
     */
    public Integer updMaths(MathsEntity mathsEntity);
    /**
     * 删除错题
     * 
     */
    public Integer delMaths(Integer id);


}
